/*
 * Devil Entity
 * @author hoang.pt
 * @version $Id: Devil.java 60 2010-08-25 12:19:44Z phantichhoang $
 */

package snippet.lab1;

/**
 * Devil to demo Daemon Thread
 * @author hoang.pt
 */
public class Devil extends Thread{
	/**
	 * properties store instance name
	 */
    public String name;

    /**
     * properties to specify daemon or not
     */
    public boolean state;

    /**
     * Constructor
     * @param String x
     * @param Boolean y
     */
    public Devil(String x, boolean y) {
        this.name = x;
        this.setDaemon(y);
        start();
    }

    /**
     * Override method
     */
    @Override
    public void run() {
        System.out.println("Go here?");
        //this.setDaemon(this.state);
    }

}
